package academic.service;

import academic.dao.WcqAcademicDao;
import academic.domain.WcqAcademic;
import common.dao.StudentDao;
import utils.DAOFactory;

import java.util.Scanner;

public class login {
    private static WcqAcademicDao wcqAcademicDao = DAOFactory.getInstance().getWcqAcademicDao();
    private static StudentDao studentDao = DAOFactory.getInstance().getStudentDao();
    public static void main(String[] args){
        Long user_id=1L;
        System.out.println("学生填写活动认证表：");
        WcqAcademic wcqAcademic=new WcqAcademic();
        Scanner input=new Scanner(System.in);
        System.out.println("学术活动名：");
        wcqAcademic.setActivity_name(input.next());
        System.out.println(wcqAcademic.getActivity_name());
        System.out.println("报告中英文名称：");
        wcqAcademic.setActivity_info(input.next());
        System.out.println("参会证明图片：");
        wcqAcademic.setActivity_photo(input.next());
        System.out.println("活动所在地：");
        wcqAcademic.setActivity_addr(input.next());
        System.out.println("活动时间：");
        wcqAcademic.setActivity_time(input.next());
        System.out.println("申请表备注：");
        wcqAcademic.setActivity_comment(input.next());
        stutest.submitStudentAcademic(user_id,wcqAcademic);

    }
}
